package com.diorsunion.hedge;

import com.diorsunion.hedge.bo.sms.SmsConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by harley-dog on 2016/5/7.
 */
@Configuration
@SpringBootApplication
@ImportResource("classpath:applicationContext.xml")
@EnableConfigurationProperties({SmsConfig.class})
public class ServerApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(ServerApplication.class, args);
    }
}
